import request from '@/router/axios';

export const getList = (option, current, size, params) => {
  return request({
    url: '/api/mes-product/qms/quality/target/management/page',
    method: 'get',
    params: {
      ...params,
      current,
      size
    },
    ...option
  });
};

export const addOrUpdate = (data) => {
  return request({
    url: '/api/mes-product/qms/quality/target/management/submit',
    method: 'post',
    data
  });
};

export const remove = (data) => {
  return request({
    url: '/api/mes-product/qms/quality/target/management/remove',
    method: 'post',
    data
  });
};
